package com.example.codegen.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@Tag(name = "首页")
public class IndexController {

    @GetMapping("/")
    @Operation(summary = "访问首页")
    public String index() {
        return "This is the codegen application.";
    }
}
